[zsh] completion system

Post removed (X-No-Archive: yes)
Notifier Deamon [ Mi, 07 November 2007 12:20 ] [ ID #1864300 ]

Re: [zsh] completion system

in message <elu640ei9p1.fsf [at] jj.jj>,
wrote jimmij ...

> I have a program which takes as an argument file with extention "ext".
> How can I tell zsh that after typing this command completion should take
> into account only files with that extention?

I think you are looking for 'list-expand' & 'list-choice' commands,
which would behave the same if the input is like 'ls *ext' followed
by pressing the respective bound key(s).


- parv
--
Undo WhereElse from address for email.
parv [ Mi, 07 November 2007 12:46 ] [ ID #1864302 ]

Re: [zsh] completion system

2007-11-07, 12:20(+01), jimmij:
> I have a program which takes as an argument file with extention "ext".
> How can I tell zsh that after typing this command completion should take
> into account only files with that extention?

zstyle ':completion:*:*:your-cmd:*' file-patterns '*.ext'

--
Stéphane
Stephane CHAZELAS [ Mi, 07 November 2007 16:44 ] [ ID #1864319 ]
Linux » comp.unix.shell » [zsh] completion system

Vorheriges Thema: Backwards "search" in directories
Nächstes Thema: I am not able to parse the following